/*
 * @Author: fah 1742484532@qq.com
 * @Date: 2024-08-28 16:46:26
 * @LastEditors: fah 1742484532@qq.com
 * @LastEditTime: 2024-08-31 09:35:15
 * @FilePath: \livetree-admin-server\src\app.service.ts
 * @Description: 指飞部-企业数字化管理系统
 * @version: 1.0
 */
import { Get, Inject, Injectable } from '@nestjs/common';
import { RedisClientType } from 'redis';

@Injectable()
export class AppService {
  @Inject('REDIS_CLIENT')
  private redisClient: RedisClientType;

  @Get()
  async getHello() {
    const keys = await this.redisClient.keys('*');
    console.log('redis all key: ', keys);

    return 'Hello World!1234567891011';
  }
}

